<script language='javascript'>  
	
</script>


<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm">

<table width="100%" cellpadding="0" cellspacing="0">
	<thead>
		<th width="50%"></th>
		<th width="5%"></th>
		<th width="*"></th>
	</thead>
	<tr>
		<td colspan="3" align="right">
			<div id = "menuId">
			<script type="text/javascript">
				setupMenu();//Display Shared Menu
			</script>
		</td>
	</tr>
	<tr>
		<td colspan="3" align="left"><div id="message"></div></td>
	</tr>
	<tr>
		<td  class="table_border" rowspan="2" valign="top">
			Ti&ecirc;u ch&iacute;: 
			Theo Content <input value="CONTENT" checked="checked" type="radio" name="typeofSerachContentName" id="idTypeofSerachContent_CONTENT" onchange="javascript:changeTypeofSerachContent()" />&nbsp;&nbsp;
			Theo Category <input type="radio" value="CATEGORY" name="typeofSerachContentName" id="idTypeofSerachContent_CATEGORY" onchange="javascript:changeTypeofSerachContent()"/><br />
			
			<input type="button" value="T&igrave;m ki&#7871;m" onclick="javascript:searchContents()" />
			<select onchange="loopSelected()" name="idSectionsName" id = "idSections">
				<?php
					foreach ($this->items->sections as $row) {
				?>
					<option value="<?php echo $row->id ?>"><?php echo $row->id ?><?php echo $row->title ?></option>
				<?php }	?>
			</select>
			
			<select size="1" name="idCategoriesName" id = "idCategories">
				<?php
					foreach ($this->items->categories as $row) {
				?>
					<option value="<?php echo $row->id ?>" id="<?php echo $row->idsecsion ?>"><?php echo $row->idsecsion ?><?php echo $row->title ?></option>
				<?php }	?>
			</select>
		
			<div id="contentArea"></div>
		</td>
	<td  class="table_border_top_bot" valign="top">
		RULES:<br />		
		<input type="checkbox" title="Edit" value="Edit" id="idEdit" /> Edit<br />
		<input type="checkbox" title="Delete" value="Delete" id="idDelete" /> Delete<br />
		<input type="checkbox" title="Public" value="Public" id="idPublic" /> Public			
	</td>
	<td valign="top"  class="table_border">
		<select name="userTypeName" id = "userType"> 
			<option value="">&nbsp;</option>
			<option value="USER">Users</option>
			<option value="GROUP">Groups</option>
		</select>
		<input type="button" value="getUserType" onclick="javascript:getUserType()" /><br />
		<div id="userTypeArea"></div>
	</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	<td colspan="2">&nbsp;</td>
	</tr>
</table>
<!--<input type="text" name ="txtName" id="idName"/>-->

<input type="hidden" name="option" value="com_accessrule" />
<input type="hidden" name="task" id="idTask" value="" />
<input type="hidden" name="controller" value="accessrule" />
</form>

